Abrir menu principal

UESPWiki β

Alterações

Utilizador:Daric Gaersmith/Templates

8 792 bytes adicionados, 02h04min de 21 de abril de 2013
My Templates: added GaerNav
{{User:Daric_Gaersmith/Templates/Userspace Layout
|intro=This page is where I play around under the hood of the wiki, creating my own templates, learning how to implement advanced wiki tricks, and other wiki-wizardry.
|content=
{{#load:User:Daric_Gaersmith/Templates/Userspace Layout|pathtotemplates|pathtorefmat|pathtopeople|pathtoplaces|pathtoitems}}
= Template Toolbox =
{{Bullet Link|link=[[:Category:Templates]]|description=the best place to start when looking for existing templates.}}
{{Bullet Link|link=[[Help:Magic Words]]|description=a summary of magic words that are unique to UESP.}}
{{Bullet Link|link=[[Help:Writing Templates]]|description=a useful help file when writing templates.}}
{{Bullet Link|link=[[UESPWiki:MetaTemplate]]|description=a handy reference for special template features of the UESP Wiki.}}
== Namespace Sandboxes ==
Until such time as the {{tlx|Sandbox Space}} template is fixed, the following sandboxes are useful for testing any templates that rely on a particular namespace for their functionality. For a full list, see [[:Category:Sandboxes]].
* [[Template:Sandbox]]
* [[Lore:Sandbox]]
* [[Skyrim:Sandbox]]
* [[Oblivion:Sandbox]]
* [[Morrowind:Sandbox]]
= My Templates =
This is a collection of custom templates that I have created or modified from other peoples' custom templates, and which reside within my own Templatespace as {{Pl|Special:PrefixIndex/User:Daric_Gaersmith/Templates/|subpages of this one}}. I may use these within my main user page, but they are mostly for use in my fan fiction [[User:Daric_Gaersmith/TES_Fan_Fiction_Collection/Gaersmith_Legacy/Reference_Material|Reference Material]].
{{Bullet Link|[[{{{pathtotemplates}}}box|box]]|description=A direct copy of [[User:rpeh|Rpeh's]] [[User:rpeh/box|box]] template. I use this throughout my userspace.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}Custom_Template_Warning|Custom Template Warning]]|description=used when I create a new custom template.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}Fan_Fiction_Disclaimer|Fan Fiction Disclaimer]]|description=adds a disclaimer and Creative Commons license to my fan fiction pages.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}GaerYear|GaerYear]]|description=links a date to my custom History Pages.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}GaerNav|GaerNav]]|description=a floating navigation bar for the pages of The Gaersmith Legacy.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}Patriarchs|Patriarchs]]|description=a navbar for all the Gaersmith patriarchs in order.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}Person|Person]]|description=used when creating a new character in my fan fiction tale.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}PlotIdea|PlotIdea]]|description=adds a [[File:User-Daric Gaersmith-Idea 32x32.png|16px]] and a link to the [[{{{pathtorefmat}}}Plot Ideas|Plot Ideas]] page.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}ResetSandbox|ResetSandbox]]|description=applies a consistent heading to all my sandboxes.}}
{{Bullet Link|link=[[{{{pathtotemplates}}}SubstNewPerson|SubstNewPerson]]|description=for <code><nowiki>{{subst}}</nowiki></code>ituting into a new, blank [[{{{pathtotemplates}}}Person|Person]].}}
{{Bullet Link|link=[[{{{pathtotemplates}}}Userspace_Layout|Userspace Layout]]|description=provides a more consistent feel for pages within my userspace. This template also contains my Standard Definitions, and other database additions I use for harmonizing my userspace.}}
= Common Definitions =
As I use a lot of subfolders in my userspace, I have developed a standard set of <code><nowiki>{{#define:}}</nowiki></code> definitions to make it easier to type in those long path names. Note that I generally terminate a path with the ending forward-slash. As a consequence of this, these definitions can only be used to address sub-pages under them, but NOT the page itself. Note that I have now moved these definitions to the [[{{{pathtotemplates}}}Userspace_Layout|Userspace Layout]] template, and they can simply be loaded from there by using the code below at the start of the page.
<pre><nowiki><cleanspace>
<!-- My Standard Definitions -->
{{#load:User:Daric_Gaersmith/Templates/Userspace Layout|pathtotemplates|pathtorefmat|pathtopeople|pathtoplaces|pathtoitems}}
</cleanspace>
</nowiki></pre>
== Examples ==
* '''Creating a Plot Idea.''' eg. "What would majicka smell like,{{{{{pathtotemplates}}}PlotIdea|The smell of majicka}} I wonder".
::<pre><nowiki>{{{{{pathtotemplates}}}PlotIdea|The smell of majicka}}</nowiki></pre>
* '''Creating a link to my History pages.''' eg. "It is likely that Tiber Septim was born early in the ninth century of the {{{{{pathtotemplates}}}GaerYear|2E 828|Second Era}}".
::<pre><nowiki>{{{{{pathtotemplates}}}GaerYear|2E 828|Second Era}}</nowiki></pre>
* '''Creating a link to a character in my fan-fic.''' eg. "The grandfather of Daric Gaersmith was [[{{{pathtopeople}}}Andoryan_Gaersmith|Andoryan]]".
::<pre><nowiki>[[{{{pathtopeople}}}Andoryan_Gaersmith|Andoryan]]</nowiki></pre>
* '''Creating a link to a place in my fan-fic.''' eg. "The Gaersmith family home in Bruma was [[{{{pathtoplaces}}}Travendon_Hall|Travendon Hall]]".
::<pre><nowiki>[[{{{pathtoplaces}}}Travendon_Hall|Travendon Hall]]</nowiki></pre>
= Other Templates I Use Often =
The following list is a quick reference for some of the existing UESP templates that I use often, would like to use, or really should be using. The '''bold''' parameters are required, others are optional.
== Patrolling ==
*{{tlx|speed|2=reason}}
*{{tlx|unsigned|2='''editor'''|3=time}} or {{tlx|uns|2='''editor'''|3=time}}
== General Editing ==
*{{tlx|Bullet Link|2=link|3=description|4=mod}}
*{{tlx|DragonFont|2='''display_text'''|3=size (html)|4=size (css)|5=mouseover_text}}
*{{tlx|Editing Allowed|2=allowed|3=users}}
*{{tlx|ESDate|2=month|3=day|4=dow|5=year|6=showyear}}
*{{tlx|FC|2='''color'''|3='''display_text'''}} &mdash; '''<tt>color</tt>''' may either be a [[wikipedia:Web_colors#HTML_color_names|name]] or a HEX code.
*{{tlx|History Entry|2='''year'''|3=day|4=minor|5=title|6='''event'''|7=minoradd}}
*{{tlx|Map Link|2=label|3=zoom|4=ns|5='''place'''|6='''x,y'''|7='''search'''}} &mdash; not all required params are required!
*{{tlx|Navbox}}
*<nowiki>{{</nowiki>[[:Category:Prize_Templates|Prize Templates]]<nowiki>}}</nowiki> &mdash; this isn't a template itself, it is a link to a category.
*{{tlx|Roleplaying|2='''sectionname'''|3='''sectiontype'''|4=user|5=game|6=nocat|7=rpsummary}}
*{{tlx|Scrollbox|2='''content'''|3=width|4=height}}
*{{tlx|Showhide/End}}
*{{tlx|Showhide/Start|2='''header'''|3='''content'''|4=fw1|5=fw2|6=bg1|7=bg2|8=ta1|9=ta2}}
*{{tlx|Wipsandbox|2=editor|3=sandbox|4=date|5=note|6=project}}
== Images, Maps and Charts ==
*{{tlx|Chart|2=border|3=boxstyle}}
*{{tlx|Chart/End}}
*{{tlx|Chart/Start}}
*{{tlx|Image Mark|2='''x'''|3='''y'''|4=label|5=mark_alt|6=x%|7=y%|8=mark_link|9=position|10=x_delt|11=y_delt}}
*{{tlx|Perk Tree|2=image|3=label|4=float|5=alt|6=perks}}
*{{tlx|Perk Tree Setup|2=width|3=mark|4=mark_color|5=mark_width|6=mark_height|7=font_size|8=text_bold|9=text_italics|10=text_color|11=background}}
* {{tlx|SkyrimBox|2=text|3=width|4=text-color|5=main-color|6=background-color}}
=== Icons ===
*{{tlx|?}} &mdash; {{?}}
*{{tlx|F}} &mdash; [[File:FemaleIconLight.png|15px]]
*{{tlx|M}} &mdash; [[File:MaleIconLight.png|15px]]
*{{tlx|V}} &mdash; {{V}}
*{{tlx|X}} &mdash; {{X}}
== Referencing ==
*{{tlx|Book Link|2='''title'''|3=alttitle|4=qty|5=authprefix|6=descprefix|7=namesp}}
*{{tlx|Cite book|2='''name'''|3=ns}}
*{{tlx|Cite web|2='''url'''|3=title|4=publisher|5=date|6=accessdate}}
*{{tlx|intnote|2='''1{{=}}name'''|3=2{{=}}mark_type}} &mdash; no named variables. This one goes in the body of the page.
*{{tlx|Linkable Entry|2=display_text|3=exname|4=exname4}} or {{tlx|LE|2=display_text|3=exname|4=exname4}}
*{{tlx|Note|2='''1{{=}}name'''|3=2{{=}}mark_type|4=3{{=}}text}} &mdash; no named variables. This one goes in the footer.
*{{tlx|OOG}}
*{{tlx|PGE|2=ed|3=sec|4=alt}}
*{{tlx|ref|2=name|3=group|4=note}}
*{{tlx|TIL|2=display_text|3=''link''}} &mdash; for ''<tt>link</tt>'' options, see the list of [http://www.uesp.net/w/index.php?title=UESPWiki:The_Imperial_Library&action=edit Save Named Values].

= Difficult Concepts =
I have trouble remembering the syntax for many of the [[Help:Magic_Words#Parser_Functions|parser functions]] and [[UESPWiki:MetaTemplate|Metatemplate functions]] that I use often, so I am building this library of examples that I can quickly copy from.

== #switch ==
<pre>
{{#switch: {{{variable}}}
| if_it_is_this= do this
and this
and this too

| if_it_is_that= just do this

| if_it_is_me
| or_if_it_is_you= do this

| #default= just do this instead, as it wasn't any of them
}}
</pre>
}}
Userspace Patrollers
1 336
edições