(Created page with "<includeonly>{{!}}- style="vertical-align:top;" {{!}} [[{{{1}}}|{{SUBPAGENAME:{{{1}}}}}]] {{{{{1}}}|transcludesection=update}} {{!}} {{Username|{{ROOTPAGENAME:{{{1}}}}}} {{!}...") |
m (Hide output if {{{1}}} is not a user page) |
||
Line 1: | Line 1: | ||
<includeonly>{{!}}- style="vertical-align:top;" | <includeonly>{{!}}- style="vertical-align:top;" | ||
{{!}} [[{{{1}}}|{{SUBPAGENAME:{{{1}}}}}]] | {{!}} {{#if:{{{1|}}}|[[{{{1}}}|{{SUBPAGENAME:{{{1}}}}}]] | ||
{{{{{1}}}|transcludesection=update}} | {{{{{1}}}|transcludesection=update}}|}} | ||
{{!}} {{Username|{{ROOTPAGENAME:{{{1}}}}}} | {{!}} {{#if:{{{1|}}}|{{Username|{{ROOTPAGENAME:{{{1}}}}}}|}} | ||
{{!}} {{{{{1}}}|transcludesection=details}} | {{!}} {{#if:{{{1|}}}|{{#ifeq:{{NAMESPACE:{{{1}}}}}|User|{{{{{1}}}|transcludesection=details}}|{{red|'''ERROR:''' supplied link {{para||{{{1}}}}} is not in the User space.}}}}|{{red|'''ERROR:''' No user page source link was supplied in {{tl|ColorSchemeEntry}}.}}}} | ||
{{!}}{{{{{1}}}|transcludesection=screenshot}} | {{!}}{{#if:{{{1|}}}|{{{{{1}}}|transcludesection=screenshot}}|}} | ||
{{!}}{{{{{1}}}|transcludesection=links}}</includeonly><noinclude>{{doc}}</noinclude> | {{!}}{{#if:{{{1|}}}|{{{{{1}}}|transcludesection=links}}|}}</includeonly><noinclude>{{doc}}</noinclude> |
Revision as of 18:37, 14 July 2015
This template creates a table entry for the Custom color schemes page which pulls content from a corresponding user page dedicated to the custom scheme. The user page must be made to work with the selective transclusion. This can be done by using the preload sample provided by the template when the user page doesn't yet exist, or copying another schemes user page.
This templates requires a single unnamed parameter, which should be a link to a User page dedicated and named for the script.
For example {{ColorSchemeEntry|User:PesachZ/Color_schemes/Map editors 2015 colors}}
It will produce the following output in the table:
|- | [[User:PesachZ/Color_schemes/Map editors 2015 colors|Map editors 2015 colors]] {{User:PesachZ/Color_schemes/Map editors 2015 colors|transcludesection=update}} | {{Username|PesachZ}} | {{User:PesachZ/Color_schemes/Map editors 2015 colors|transcludesection=details}} |{{User:PesachZ/Color_schemes/Map editors 2015 colors|transcludesection=screenshot}} |{{User:PesachZ/Color_schemes/Map editors 2015 colors|transcludesection=links}}
Instructions
- On the Custom color schemes page click to edit the section with the sample list table.
- Add a new line between two other entries.
- On that new line add the following code
{{ColorSchemeEntry|<LINK TO YOUR USER THEME PAGE}}
- Do not actually create the user page yet, just put the link it you want to be at for now.
- Save the change (don't forget to add an edit summary.
- On the new row in the table you just added there will be a link in the description column to create the theme page in your user space. Click the [Create it] link.
- This won't work if you already created the page before.
- This will create the page with all the code and formatting already in place,just waiting for you to fill in the details.
- Fill in all the information on your new user page. Replace all the <PLACEHOLDERS> on the page with the correct info.
- Save your new user page.
- Reload the Custom color schemes page to check your results.
Please try to keep the first part of the description (which is transcluded to the table) brief, you can add more details in the section below that to be displayed only on the theme page. Please only put one screenshot in the top section which is transcluded in the table, you can add more screenshots below that section as well.
The above documentation is transcluded from Template:ColorSchemeEntry/doc. Please add categories to the /doc subpage. Subpages of this template. |