Template:AIBanner: Difference between revisions
Template page
More actions
Initial  |
move details onto its own line below instead of inline after a dash  |
||
| (One intermediate revision by the same user not shown) | |||
| Line 47: | Line 47: | ||
[[Category:Banner Templates]] | [[Category:Banner Templates]] | ||
[[Category:Layout Templates]] | [[Category:Layout Templates]] | ||
</noinclude><includeonly><templatestyles src="AIBanner/styles.css"/><div class="ai-banner" role="note" aria-label="AI content policy"><div class="ai-banner-icon">✶</div><div class="ai-banner-body"><span class="ai-banner-label">{{{acceptability|AI policy not specified}}}</span>{{#if:{{{details|}}}|< | </noinclude><includeonly><templatestyles src="AIBanner/styles.css"/><div class="ai-banner" role="note" aria-label="AI content policy"><div class="ai-banner-icon">✶</div><div class="ai-banner-body"><div class="ai-banner-top"><span class="ai-banner-title">AI Policy</span><span class="ai-banner-label">{{{acceptability|AI policy not specified}}}</span></div>{{#if:{{{details|}}}|<div class="ai-banner-details">{{{details}}}</div>|}}</div></div></includeonly> | ||
Latest revision as of 11:57, 23 March 2026
AIBanner
Displays a slim, noticeable banner indicating the project's policy on AI-generated content. Place at the top or bottom of a project page.
Styles are loaded from Template:AIBanner/styles.css.
Usage
{{AIBanner
| acceptability = AI content welcome
| details = All types of AI-generated content are welcome here, including art, text, and code, as long as it is clearly labelled.
}}
Parameters
acceptability- A short label summarising the project's AI policy (e.g.
AI content welcome,No AI contributions allowed,AI code only – no AI art). Displayed prominently in the banner. details- The creator's full explanation or elaboration of the AI policy. Displayed in smaller text below the label.
Notes
- Keep
acceptabilityshort — it is the at-a-glance summary. detailscan be as long as needed; the banner will grow to fit.- The banner is purely informational; it does not affect Cargo or any database.
Displays a slim banner stating the project's policy on AI-generated content. Place at the top or bottom of a project page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| AI Acceptability | acceptability | A short label summarising the project's AI policy, e.g. "AI content welcome" or "No AI contributions allowed".
| String | required |
| Details | details | The creator's full explanation or elaboration of the AI policy shown below the label.
| String | optional |