Template:Sitenames: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Jsoby (talk | contribs)
Created page with "{{#ifexist:{{Sitenames/{{{language}}}}} | {{Sitenames/{{{language}}}|{{{1}}}}} | {{ucfirst:{{#if:{{{sitename|}}}|{{{sitename}}}|Wikimedia}}}} }}<noinclude> == Documentation ==..."
 
Jsoby (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{Sitenames/{{{language}}}}}
<nowiki></nowiki>{{#ifexist:Template:Sitenames/{{{language}}}
| {{Sitenames/{{{language}}}|{{{1}}}}}
| {{Sitenames/{{{language}}}|{{{1}}}}}
| {{ucfirst:{{#if:{{{sitename|}}}|{{{sitename}}}|Wikimedia}}}}
| {{Sitenames/en|{{{1}}}}}
}}<noinclude>
}}<noinclude>
== 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 ===
{{Special:Prefixindex/Template:Sitenames}}
{{Special:Prefixindex/Template:Sitenames/}}
</noinclude>
</noinclude>

Latest revision as of 22:53, 23 November 2011