Difference between revisions of "User:Djonni/Template sandbox"

From GodWiki
Jump to: navigation, search
m (Extra note if you want to use this template)
m (No longer uses ugly placeholder image. I wouldn't want it on my page, why would anyone?)
(Tags: Mobile edit, Mobile web edit)
Line 5: Line 5:
 
| imagestyle = padding:0;background: #{{{highlighthex|e3f0fd}}}33; border-bottom: 2px solid #f8f9fa;
 
| imagestyle = padding:0;background: #{{{highlighthex|e3f0fd}}}33; border-bottom: 2px solid #f8f9fa;
 
| captionstyle = background: #{{{highlighthex|e3f0fd}}}33; border-bottom: 2px solid #f8f9fa;
 
| captionstyle = background: #{{{highlighthex|e3f0fd}}}33; border-bottom: 2px solid #f8f9fa;
| image = {{Infobox image|{{#if:{{{avatar|}}}|{{{avatar}}}|Godicon.png}}}}
+
| image = {{Infobox image|{{{avatar|}}}}}
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
 
| abovestyle = background: #{{{highlighthex|e3f0fd}}}; border-bottom: 2px solid #f8f9fa;
 
| abovestyle = background: #{{{highlighthex|e3f0fd}}}; border-bottom: 2px solid #f8f9fa;
Line 76: Line 76:
  
 
;avatar
 
;avatar
:As {{tl|Usergod}}, except that for now this uses a placeholder image. I've since taken a took, and there are users of Usergod who haven't put avatar images in, so this will be changed.
+
:As {{tl|Usergod}}, <s>except that for now this uses a placeholder image. I've since taken a took, and there are users of Usergod who haven't put avatar images in, so this will be changed.</s>
  
 
;caption
 
;caption

Revision as of 11:26, 12 October 2019

Gods of Godville
GodDjonni/Template sandbox 
Documentation  Documentation

Brief documentation of parameters.

This template is NOT stable. You're welcome to use and test it, but be aware, I may make changes without warning. If I do see anyone using it, I'll drop you a message on your talk page if something changes.

This is a list of pages (therefore users) that link to this page:

I have (hopefully) incorporated all variables used in {{Usergod}}, so that this can be a drop-in replacement. (TODO: examine the Usergod code to ensure I haven't missed any undocumented variables)

title
A title to place before the God's name. In my user page, |title=God
name
The name of the God. This is only required if the current {{PAGENAME}} is not the God's name. So, should basically never be needed, I expect.
All parameters of the {{medal}} template
These will correctly render as medals in {{God}}. Considering also creating an Achievements section below Pantheons which would show these somehow.
postnomial
A title for after the God's name. In my user page, |postnomial=the Great
subheader
As per {{infobox}}
highlighthex
This is a tricky/clever one which I know, with respect, that FeRDNYC will hate. Don't worry, I intend to implement a fuller set of colour and styling parameters! But honestly, take a look at the code. Clever, right? Single variable, and BAM, coherent colour scheme.
This parameter takes a six-character hex code for the highlight colour (headers, row labels), without a # in front, in RRGGBB format. For example, |highlighthex=FFBB88
avatar
As {{Usergod}}, except that for now this uses a placeholder image. I've since taken a took, and there are users of Usergod who haven't put avatar images in, so this will be changed.
caption
As per {{infobox}}
hero
heroine
personality
gender
motto
town
guild
All as per existing {{Usergod}}
domain
The God's "domain", their area of influence in the world.

Guild parameters

position
A position in a guild's organisation.
rank
Guild rank

Pantheon parameters

gratitude
might
templehood
gladiatorship
storytelling
Unstable Currently, these parameters take just the position number. This may (probably will) be changed somehow.