Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
m (tweak) |
m (tweak - no nested if) |
||
Line 29: | Line 29: | ||
| <!-- ELSE status --> |
| <!-- ELSE status --> |
||
}} <!-- ENDIF status --> <!-- |
}} <!-- ENDIF status --> <!-- |
||
⚫ | |||
IF build --> {{ #if: {{{build|}}} | |
IF build --> {{ #if: {{{build|}}} | |
||
{{!}}- |
{{!}}- |
||
Line 35: | Line 34: | ||
{{!}} style="text-align:left;" {{!}} {{{build}}} |
{{!}} style="text-align:left;" {{!}} {{{build}}} |
||
| <!-- ELSE build --> |
| <!-- ELSE build --> |
||
}} <!-- ENDIF build --> |
}} <!-- ENDIF build --> <!-- |
||
⚫ | |||
{{!}}- |
{{!}}- |
||
{{!}} style="text-align:right;" {{!}} '''Source:''' |
{{!}} style="text-align:right;" {{!}} '''Source:''' |
||
{{!}} style="text-align:left;" {{!}} {{{source}}} |
{{!}} style="text-align:left;" {{!}} {{{source}}} |
||
⚫ | |||
⚫ | |||
IF language --> {{ #if: {{{language|}}} | |
IF language --> {{ #if: {{{language|}}} | |
||
{{!}}- |
{{!}}- |
||
Line 48: | Line 50: | ||
{{!}}- |
{{!}}- |
||
{{!}} style="text-align:right;" {{!}} '''[[Localization|l10n]]:''' |
{{!}} style="text-align:right;" {{!}} '''[[Localization|l10n]]:''' |
||
{{!}} style="text-align:left;" {{!}} {{ #ifexist: {{PAGENAME}}/Localization|[[{{PAGENAME}}/Localization]]|{{{l10n|''<span class="plainlinks">[{{fullurl:{{PAGENAME}}}}/Localization add it here]</span>''}}} }} }} <!-- ENDIF l10n --> |
{{!}} style="text-align:left;" {{!}} {{ #ifexist: {{PAGENAME}}/Localization|[[{{PAGENAME}}/Localization]]|{{{l10n|''<span class="plainlinks">[{{fullurl:{{PAGENAME}}}}/Localization add it here]</span>''}}} }} }} <!-- ENDIF l10n --> <!-- |
||
⚫ | |||
⚫ | |||
IF testplan --> {{ #if: {{{testplan|{{#ifexist:{{PAGENAME}}/Test plan|gotpage|}}}}} | |
IF testplan --> {{ #if: {{{testplan|{{#ifexist:{{PAGENAME}}/Test plan|gotpage|}}}}} | |
||
{{!}}- |
{{!}}- |
Revision as of 15:51, 2 July 2007
Many times you may want to just 'test' an idea for a template, I haven't found a sensible way of fully testing templates by themselves (as they will not get included in the edited version, but rather the saved version).
The idea of this Template:Sandbox is to have that, a simple testing zone that will not interfere with others and avoid leaving a trail of botched attempts.
Please leave this comment/text for others to read. See Also http://meta.wikimedia.org/wiki/Help:Template
- Testing: Status box
Sandbox (activity)
| |
Contributors | |
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Software idea]] source => {{{source}}} | no source type => {{{type}}} | {{{type}}} status => {{{status}}} | {{{status}}}
This template automatically includes the page in the [[:Category:{{{type}}}]].
Many of the 'parameters' only make sense under certain circumstances (ie: no point in mentioning l10n if there's no source code).
Usage
{{Status box | component = <!-- OPTIONAL -- Name of the component (defaults to page title) --> | type = <!-- Type of the component {activity, core, support} --> | icon = <!-- OPTIONAL -- file name.ext (sans [[Image:file name.ext]] --> | status = <!-- Status of the activity --> | build = <!-- OPTIONAL -- Build # where it first appeared --> | source = <!-- OPTIONAL -- Repository / location of the source --> | language = <!-- OPTIONAL -- Computer language of the source --> | l10n = <!-- OPTIONAL -- Repository / location of the l10n resources --> | testplan = <!-- OPTIONAL -- link to the test plan page --> | contributors = <!-- People contributing to the activity --> |version = <!-- Current/latest version available -->dropping it |base = <!-- Yes/No if it's included in the OS images / Could be the first build number -->dropping it }}
Sample
Empty
Raw invocation.
Sandbox (activity)
| |
Contributors | |
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Software idea]] source => {{{source}}} | no source type => {{{type}}} | {{{type}}} status => {{{status}}} | {{{status}}} {{ Sandbox }}
- Notes
- Nothing else should show.
- Simplest
- Basically an idea; using the page name; and misclassified by type, so defaults to a Unknown Component. Nothing else should show.
Sandbox (Bar)
| |
Contributors | |
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Software idea]] source => {{{source}}} | no source type => Bar | bar status => {{{status}}} | {{{status}}} {{ Sandbox | type = Bar }}
- Simple 1
- Basically an idea; using the page name; and misclassified by type.
Sandbox (activity)
| |
Contributors | |
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Software idea]] source => {{{source}}} | no source type => activity | activity status => {{{status}}} | {{{status}}} {{ Sandbox | type = activity }}
- Notes
- the type is recognized. Nothing else should show.
- Simple 2
- Basically an idea for a named component of the activity type, and an icon.
Foo (activity) | |
Contributors | |
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Software idea]] source => {{{source}}} | no source type => activity | activity status => {{{status}}} | {{{status}}} {{ Sandbox | component = Foo | type = activity | icon = Xo s.png }}
- Simple 3
- An activity idea that has code and an icon, in beta status, with l10n resources
Foo (activity) | |||||
Status: | beta |- | Source: | foo |- | l10n: | Localization |
Contributors | |||||
{{{contributors}}} |
Testing parameterized categorizations: [[Category:Activity beta]] source => foo | has source type => activity | activity status => beta | beta {{ Sandbox | component = Foo | type = activity | icon = Xo s.png | source = [[foo]] | l10n = [[Localization]] | status = beta }}