Template:SITENAME SHORT: Difference between revisions
From MediaWiki
Jump to navigationJump to search
mNo edit summary |
m Protected "Template:SITENAME SHORT" [edit=autoconfirmed:move=autoconfirmed] |
||
| (6 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>TFWiki.net</includeonly><noinclude>[[Category:Templates|SITENAME SHORT]] | ||
The Mediawiki ''magic word'' '''<tt><nowiki>{{SITENAME}}</nowiki></tt>''' returns the full name of this website; '''{{SITENAME}}'''. | The Mediawiki ''magic word'' '''<tt><nowiki>{{SITENAME}}</nowiki></tt>''' returns the full name of this website; '''{{SITENAME}}'''. | ||
'''<tt><nowiki>{{SITENAME SHORT}}</nowiki></tt>''' <small>(or '''<tt><nowiki>{{SITENAME_SHORT}}</nowiki></tt>''', same difference)</small> return the much shorter; '''{{SITENAME SHORT}}'''. | '''<tt><nowiki>{{SITENAME SHORT}}</nowiki></tt>''' <small>(or '''<tt><nowiki>{{SITENAME_SHORT}}</nowiki></tt>''', same difference)</small> return the much shorter; '''{{SITENAME SHORT}}'''. | ||
There's no ''real'' reason you couldn't just write it out manually | There's no ''real'' reason you couldn't just write it out manually, but calling it like this serves the same purpose calling '''<tt><nowiki>{{SITENAME}}</nowiki></tt>''' does: providing easy forward-computability in the event this site ever chooses to change its name to something else, like "Witwickypedia." It also ensures that you won't accidentally format the name differently than all the other instances. ("Wait, am I supposed to bold it or italicize it...?") | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:38, 26 July 2011
The Mediawiki magic word {{SITENAME}} returns the full name of this website; MediaWiki.
{{SITENAME SHORT}} (or {{SITENAME_SHORT}}, same difference) return the much shorter; TFWiki.net.
There's no real reason you couldn't just write it out manually, but calling it like this serves the same purpose calling {{SITENAME}} does: providing easy forward-computability in the event this site ever chooses to change its name to something else, like "Witwickypedia." It also ensures that you won't accidentally format the name differently than all the other instances. ("Wait, am I supposed to bold it or italicize it...?")

