Template:Sitenames: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Jsoby (talk | contribs)
No edit summary
Jsoby (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<nowiki></nowiki>{{#ifexist:{{Sitenames/{{{language}}}}}
<nowiki></nowiki>{{#ifexist:Template:Sitenames/{{{language}}}
| {{Sitenames/{{{language}}}|{{{1}}}}}
| {{Sitenames/{{{language}}}|{{{1}}}}}
| {{Sitenames/en|{{{1}}}}}
| {{Sitenames/en|{{{1}}}}}
Line 5: Line 5:
== Documentation ==
== Documentation ==
This template returns the sitename of projects in a given language. It works by including a subtemplate of this one that lists all the sitenames that are different from the English names. It works using the URL variable 'sitename', set in the banner as <tt>wgNoticeProject</tt>.
This template returns the sitename of projects in a given language. It works by including a subtemplate of this one that lists all the sitenames that are different from the English names. It works using the URL variable 'sitename', set in the banner as <tt>wgNoticeProject</tt>.

<div style="width:30em;margin:1em auto;padding:1em;border:1px solid #ccc;background-color:#fff;border-radius:1em;box-shadow:0 0 5px #ccc;">
'''Make a new subtemplate'''<br />
Enter a language code.
<inputbox>
type = create
break = no
width = 4
preload = Template:Sitenames/en
prefix = Template:Sitenames/
</inputbox>
</div>


=== Subtemplates ===
=== Subtemplates ===

Latest revision as of 22:53, 23 November 2011