Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Search
Recent changes
Random page
Media files list
List of all pages
Catholic Catechism
Big Ideas for Catechism
Glossary of terms for catechism
The Mass
The Catholic Mass
Mass responses in English & Latin
Mass responses in English & Spanish
Prayers
Prayers in English and Latin
The Lord's Prayer
The Bible
The Catholic Bible
List of Books of the Bible with abbreviations
Senses of Scripture
Blog
Blog roll
Admin only pages
Upload file
Batch Upload
Site development
MediaWiki:Sidebar
MediaWiki:Common.css
Using Mediawiki:
Help about MediaWiki
Code & formatting log
Rejoice in the Catholic Faith
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Talk:Site development
Add topic
Page
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<div style="background-color:lightgray;"> == FIXED Blog pages max width and font size == resolved via Common.css < see notes there issue was mobile was not liking the center and margin 0 auto and pushed text to the left FIX: make the css rule only for screns ove 850 << see common.css </div> == Common header for Blog namespace == ChatGTP suggests: <pre>To include a template at the top of every page in a specific namespace in MediaWiki, you can use the `MediaWiki:Common.js` or `MediaWiki:Common.css` to add JavaScript or CSS that injects the template. Alternatively, you can use the `MediaWiki:CommonHeader` page if it’s supported in your MediaWiki installation. Here’s a method using JavaScript: 1. **Edit `MediaWiki:Common.js`**: - Go to the page `MediaWiki:Common.js` on your wiki. - Add the following script: ```javascript // Add template to the top of every page in a specific namespace $(document).ready(function() { // Replace '3000' with your namespace number if (mw.config.get('wgNamespaceNumber') === 3000) { // Replace 'Template:YourTemplateName' with the template you want to include var template = '{{YourTemplateName}}'; // Create a new div to hold the template var templateDiv = $('<div></div>').html(template); // Prepend the template to the content $('#content').prepend(templateDiv); } }); ``` 2. **Edit `MediaWiki:Common.css`** (Optional): - Go to the page `MediaWiki:Common.css` on your wiki. - Add any additional CSS to style the injected template if necessary. Here’s a method using the `MediaWiki:CommonHeader` page (if supported): 1. **Create `MediaWiki:CommonHeader` for the specific namespace**: - Go to the page `MediaWiki:CommonHeader/Namespace_3000`. - Add the template you want to include at the top of every page: ```plaintext {{YourTemplateName}} ``` This method might require your MediaWiki to have the necessary extensions or configurations to support namespace-specific headers. ### Explanation: - **JavaScript Method**: This script checks if the current namespace matches the specified number (`3000` in this case). If it does, it injects the specified template at the top of the content area. - **CommonHeader Method**: This approach uses MediaWiki’s built-in capabilities (if available) to add a common header to all pages in a namespace by creating a `MediaWiki:CommonHeader/Namespace_X` page. Choose the method that best fits your MediaWiki configuration and your level of access to the site's backend. </pre> == PRE Tag extends text off right margin on Browser read mode == 5/24: no solution yet == Blog roll shows Blog: before every article - to remove == https://rejoiceinfaith.org/index.php/Category:Blog == responsive columns code ("flex-wrap") == <pre> <div style="display: flex; flex-wrap: wrap;"><div style="flex: 1; min-width: 20em; padding: 1em; margin: 15px; max-width:50%;"> <div style="flex: 1; min-width: 20em; margin: 15px; padding: 1em;"> </div> </div> </pre> == Clear div code == <pre> <div style="clear:both;"></div> </pre>
Summary:
Please note that all contributions to Rejoice in the Catholic Faith are considered to be released under the Creative Commons Attribution (see
Catholic Catechism:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)