Template talk:Delete: Difference between revisions

From Halopedia, the Halo wiki

(→‎The Image: Vertically center?)
 
m (→‎The Image: Typo fixing, replaced: [[Image: → File: (7))
Line 2: Line 2:
You can improve the alignment of that image by changing the template's HTML to the following:
You can improve the alignment of that image by changing the template's HTML to the following:
<pre><div style="background: #FFDC7F; border-left: 10px solid #FBA003; width: auto; margin: 5px;"><div style="padding: 5px; border: 1px solid #FBA003; border-left: none;">
<pre><div style="background: #FFDC7F; border-left: 10px solid #FBA003; width: auto; margin: 5px;"><div style="padding: 5px; border: 1px solid #FBA003; border-left: none;">
[[Image:Graphic_Halo.png|32px|left]] This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].
File:Graphic_Halo.png|32px|left]] This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].
</div></div></pre>
</div></div></pre>
Apparently, float codes are case-sensitive. =_=
Apparently, float codes are case-sensitive. =_=


<span style="background:#AADDAA;display:inline-block;height:16px;padding-right:4px;line-height:1em;position:relative;top:-3px;-moz-border-radius:0 50% 50%"><b>[[Image:DavidJCobb_Emblem.svg|16px]] [[User:DavidJCobb|<span style="color:#000;position:relative;top:.15em">DavidJCobb&nbsp;</span>]]</b></span> 15:22, 7 July 2009 (UTC)
<span style="background:#AADDAA;display:inline-block;height:16px;padding-right:4px;line-height:1em;position:relative;top:-3px;-moz-border-radius:0 50% 50%"><b>File:DavidJCobb_Emblem.svg|16px]] [[User:DavidJCobb|<span style="color:#000;position:relative;top:.15em">DavidJCobb&nbsp;</span>]]</b></span> 15:22, 7 July 2009 (UTC)


:I don't think it looks quite right. See [[Halopedia:Sandbox]]. The template above is the code you proposed while the below template is the current template coding. We could try to reduce the image size to 20px though.- <b>[[User:Subtank|<font color="gold"><font color="#FF4F00">5</font>əb<font color="#FF4F00">'7</font>aŋk</font>]]<sup>([[User talk:Subtank|<font color="#FF4F00">7alk</font>]])</sup></b> 15:45, 7 July 2009 (UTC)
:I don't think it looks quite right. See [[Halopedia:Sandbox]]. The template above is the code you proposed while the below template is the current template coding. We could try to reduce the image size to 20px though.- <b>[[User:Subtank|<font color="gold"><font color="#FF4F00">5</font>əb<font color="#FF4F00">'7</font>aŋk</font>]]<sup>([[User talk:Subtank|<font color="#FF4F00">7alk</font>]])</sup></b> 15:45, 7 July 2009 (UTC)
Line 13: Line 13:
::We could try this code, which will vertically center the image no matter how large the box expands to.
::We could try this code, which will vertically center the image no matter how large the box expands to.
<pre><div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<pre><div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="position:absolute;top:50%;margin-top:-16px">[[Image:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
<div style="position:absolute;top:50%;margin-top:-16px">File:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
</div></div></pre>
</div></div></pre>
::The result:
::The result:
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="position:absolute;top:50%;margin-top:-16px">[[Image:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
<div style="position:absolute;top:50%;margin-top:-16px">File:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
</div></div>
</div></div>
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="position:absolute;top:50%;margin-top:-16px">[[Image:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''This is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long test'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
<div style="position:absolute;top:50%;margin-top:-16px">File:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''This is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long test'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
</div></div>
</div></div>
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="position:absolute;top:50%;margin-top:-16px">[[Image:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''<br><br><br><br><br>lol wut?'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
<div style="position:absolute;top:50%;margin-top:-16px">File:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''<br><br><br><br><br>lol wut?'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
</div></div>
</div></div>
::<span style="background:#AADDAA;display:inline-block;height:16px;padding-right:4px;line-height:1em;position:relative;top:-3px;-moz-border-radius:0 50% 50%"><b>[[Image:DavidJCobb_Emblem.svg|16px]] [[User:DavidJCobb|<span style="color:#000;position:relative;top:.15em">DavidJCobb&nbsp;</span>]]</b></span> 16:11, 7 July 2009 (UTC)
::<span style="background:#AADDAA;display:inline-block;height:16px;padding-right:4px;line-height:1em;position:relative;top:-3px;-moz-border-radius:0 50% 50%"><b>File:DavidJCobb_Emblem.svg|16px]] [[User:DavidJCobb|<span style="color:#000;position:relative;top:.15em">DavidJCobb&nbsp;</span>]]</b></span> 16:11, 7 July 2009 (UTC)

Revision as of 16:45, August 10, 2017

The Image

You can improve the alignment of that image by changing the template's HTML to the following:

<div style="background: #FFDC7F; border-left: 10px solid #FBA003; width: auto; margin: 5px;"><div style="padding: 5px; border: 1px solid #FBA003; border-left: none;">
File:Graphic_Halo.png|32px|left]] This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].
</div></div>

Apparently, float codes are case-sensitive. =_=

File:DavidJCobb_Emblem.svg|16px]] DavidJCobb  15:22, 7 July 2009 (UTC)

I don't think it looks quite right. See Halopedia:Sandbox. The template above is the code you proposed while the below template is the current template coding. We could try to reduce the image size to 20px though.- 5əb'7aŋk(7alk) 15:45, 7 July 2009 (UTC)
Due to the limitations of CSS, we can't get the image to size perfectly with the text... But we can align it in a manner that looks perfect.
We could try this code, which will vertically center the image no matter how large the box expands to.
<div style="background:#FFDC7F;border-left: 10px solid #FBA003;width:auto;margin:5px;"><div style="padding:5px;border:1px solid #FBA003;border-left:none;position:relative">
<div style="position:absolute;top:50%;margin-top:-16px">File:Graphic_Halo.png|32px]]</div> <div style="margin-left:37px">This article ({{PAGENAME}}) has been nominated for deletion. The reason given was: '''''{{{1|reason for nomination}}}'''''. If you disagree, state your reasoning on its [[{{TALKPAGENAME}}|talk page]].</div>
</div></div>
The result:
File:Graphic_Halo.png|32px]]
This article (Delete) has been nominated for deletion. The reason given was: reason for nomination. If you disagree, state your reasoning on its talk page.
File:Graphic_Halo.png|32px]]
This article (Delete) has been nominated for deletion. The reason given was: This is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long test. If you disagree, state your reasoning on its talk page.
File:Graphic_Halo.png|32px]]
This article (Delete) has been nominated for deletion. The reason given was:




lol wut?
. If you disagree, state your reasoning on its talk page.
File:DavidJCobb_Emblem.svg|16px]] DavidJCobb  16:11, 7 July 2009 (UTC)